home *** CD-ROM | disk | FTP | other *** search
- property s
- global demos, currtitle
-
- on beginSprite me
- s = me.spriteNum
- end
-
- on prepareFrame me
- if currtitle = 0 then
- set the member of sprite s to "dim demo"
- exit
- end if
- thedemo = getAt(demos, currtitle)
- if thedemo <> EMPTY then
- set the member of sprite s to "demo button"
- else
- set the member of sprite s to "dim demo"
- end if
- end
-
- on mouseUp
- if currtitle = 0 then
- exit
- end if
- thedemo = getAt(demos, currtitle)
- godemo(thedemo)
- end
-